package com.itheima.method;

import sun.font.EAttribute;

import static sun.misc.Version.print;

public class Method02 {
    public static void main(String[] args) {
        print01(30, 21);

    }

    public static void print01(int n, int m) {
        if (m < n) {
            System.out.println("数据有误!");
            return;
        }
        for (int i = n; i <= m; i++) {
            if (i % 2 == 1) {
                System.out.println(i);
            }
        }
    }


}
